package com.dg.dao;

import com.dg.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> getRoleListByRoleIdList(@Param("roleIdList") List<Integer> roleIdList);

    List<Role> getAll();

    int findByName(@Param("id") Integer id,@Param("name") String name);
}